#ifndef SMALL_MESSAGE_H
#define SMALL_MESSAGE_H
#include <QWidget>
#include <QMouseEvent>
#include <chat.h>
#include "main.h"

namespace Ui {
class small_message;
}

class small_message : public QWidget
{
    Q_OBJECT

public:
    explicit small_message(user* target, QWidget *parent = nullptr);
    ~small_message();
    void set_picture(QPixmap);//头像显示
    void set_name(QString);//昵称显示
    bool eventFilter(QObject* obj, QEvent* event);//事件过滤
    QString user_id;
    private:
    Ui::small_message* ui;
};

#endif // SMALL_MESSAGE_H
